package org.i1510.common.utils.quartz;
import java.util.Map;  
  
import org.quartz.Job;  
import org.quartz.JobExecutionContext;  
import org.quartz.JobExecutionException;  
  
public class MessageJobTest implements Job {  
  
    public void execute(JobExecutionContext context) throws JobExecutionException {  
          
        Map properties = context.getJobDetail().getJobDataMap();  
          
        System.out.println("Previous Fire Time: " + context.getPreviousFireTime());  
        System.out.println("Current Fire Time: " + context.getFireTime());  
        System.out.println("Next Fire Time: " + context.getNextFireTime());  
        System.out.println(properties.get("message"));  
          
    }  
} 